package com.fenghongzhang.kotlin1903.mvp.presenter

import com.fenghongzhang.kotlin1903.mvp.contract.FoodContract
import com.fenghongzhang.kotlin1903.mvp.model.IModel
import com.fenghongzhang.kotlin1903.mvp.view.IView

open class BasePresenter <V:IView, M:IModel> : IPresenter{

    var mView: V
    var mModel: M

    constructor(mRootView: V, mRootModel: M) {
        this.mView = mRootView
        this.mModel = mRootModel
    }


    override fun destroy() {
        mModel.destroy()
    }

}